package com.igroupes.ovineherd.query;

import cn.hutool.json.JSONObject;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 模型返回
 */
@Data
@Accessors(chain = true)
@TableName(value = "data_model_attribute",autoResultMap = true)
public class ModelDataJsonAttributeQuery {
    private long id;
    private String beanType;
    private Integer tableId;
    private String name;
    private String desc;
    private String dbName;
    private Integer isNull;
    private String addTime;
    private String updateTime;
    private Long addUser;
    private Long updateUser;
    private Integer dbNumber;
    private Integer order = 1;
    @TableField(typeHandler = JacksonTypeHandler.class)
    private JSONObject json;
}
